
const routes = [
  {
    path: '/login',
    async(routeTo, routeFrom, resolve, reject) {
      const vueComponent = () => import('@/views/login');
      vueComponent().then((vc) => {
        resolve({ component: vc.default })
      });
    },
  },
  {
    path: '/tabs/',
    async(routeTo, routeFrom, resolve, reject) {
      const vueComponent = () => import('@/views/tabs');
      vueComponent().then((vc) => {
        resolve({ component: vc.default })
      });
    },
    tabs: [
      {
        path: '/message',
        id: 'message',
        async(routeTo, routeFrom, resolve, reject) {
          const vueComponent = () => import('@/views/tabs/message');
          vueComponent().then((vc) => {
            resolve({ component: vc.default })
          });
        },
      },
      {
        path: '/requestinfo',
        id: 'requestinfo',
        async(routeTo, routeFrom, resolve, reject) {
          const vueComponent = () => import('@/views/tabs/requestinfo');
          vueComponent().then((vc) => {
            resolve({ component: vc.default })
          });
        },
      },
      {
        path: '/',
        id: 'home',
        async(routeTo, routeFrom, resolve, reject) {
          const vueComponent = () => import('@/views/tabs/home');
          vueComponent().then((vc) => {
            resolve({ component: vc.default })
          });
        },
      },
      {
        path: '/compass',
        id: 'compass',
        async(routeTo, routeFrom, resolve, reject) {
          const vueComponent = () => import('@/views/tabs/compass');
          vueComponent().then((vc) => {
            resolve({ component: vc.default })
          });
        },
      },
      {
        path: '/my',
        id: 'my',
        async(routeTo, routeFrom, resolve, reject) {
          const vueComponent = () => import('@/views/tabs/my');
          vueComponent().then((vc) => {
            resolve({ component: vc.default })
          });
        },
      }
    ]
  },
  {
    path: '/circle',
    async(routeTo, routeFrom, resolve, reject) {
      const vueComponent = () => import('@/views/circle');
      vueComponent().then((vc) => {
        resolve({ component: vc.default })
      });
    },
  },
  {
    path: '/newfirends',
    async(routeTo, routeFrom, resolve, reject) {
      const vueComponent = () => import('@/views/requestinfo/new-firends');
      vueComponent().then((vc) => {
        resolve({ component: vc.default })
      });
    },
  },
  {
    path: '/userinfor',
    async(routeTo, routeFrom, resolve, reject) {
      const vueComponent = () => import('@/views/userinfor');
      vueComponent().then((vc) => {
        resolve({ component: vc.default })
      });
    },
  },
  {
    path: '/editAddFirend',
    async(routeTo, routeFrom, resolve, reject) {
      const vueComponent = () => import('@/views/requestinfo/editAddFirend');
      vueComponent().then((vc) => {
        resolve({ component: vc.default })
      });
    },
  }
]


export default routes
